package weixin.req;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.google.gson.annotations.SerializedName;

/**
 * @author ultrafrog
 * @version 1.0, 2014-11-09
 * @since 1.0
 */
public class Button implements Serializable {

	/**  */
	public String type;
	
	/**  */
	public String name;
	
	/**  */
	public String key;
	
	/**  */
	public String url;
	
	/**  */
	@SerializedName("sub_button")
	public List<Button> subButton;
	
	/** 构造函数 */
	public Button() {
		subButton = new ArrayList<Button>(5);
	}
	
	/**
	 * @author ultrafrog
	 * @version 1.0, 2014-11-08
	 * @since 1.0
	 */
	public static class Type {
		
		public static final String CLICK				= "click";
		
		public static final String VIEW					= "view";
		
		public static final String SCANCODE_PUSH		= "scancode_push";
		
		public static final String SCANCODE_WAITMSG		= "scancode_waitmsg";
		
		public static final String PIC_SYSPHOTO			= "pic_sysphoto";
		
		public static final String PIC_PHOTO_OR_ALBUM	= "pic_photo_or_album";
		
		public static final String PIC_WEIXIN			= "pic_weixin";
		
		public static final String LOCATION_SELECT		= "location_select";
	}
}
